package Inheritance;

import Inheritance2.People;

public class Student extends People {
    static final Subject[] Subject = null;

    public Student(int number, String name, String sex, Subject[] course) {
        super(number, name, sex, course);
    }

    public void choiceCourse(Student student, int n, Subject curriculums1) {
        Student.Subject[n] = curriculums1;
        System.out.println(student.name + "选择" + student.course[n].coursename + "课程成功");
    }

    public void outCourse(Student student, int n) {
        System.out.println(student.name + "退选" + student.course[n].coursename + "课程成功");
        Student.Subject[n] = null;
    }

    public void choiceSubject(Student stdWang, int j, Inheritance.Subject subject2) {
    }

    public void outSubject(Student stdWang, int p) {
    }
}